const wms = () => import('@/views/wms/index.vue');
const wmsIn = () => import('@/views/wms/in/index.vue');
const addWmsIn = () => import('@/views/wms/in/addIn.vue');
const wmsInDetails = () => import('@/views/wms/in/inDetails.vue');
const wmsOut = () => import('@/views/wms/out/index.vue');
const addWmsOut= () => import('@/views/wms/out/addOut.vue');
const wmsStock = () => import('@/views/wms/stock/index.vue');
export const wmsRouter = [
    {
        path: '/wms',
        name: 'wms',
        component: wms,
        redirect: '/wms/in',
        children: [
            {
                path: '/wms/in',
                name: 'wmsIn',
                component: wmsIn,
                meta: {
                    menuOpen: '/wms',
                    menuSel: '/wms/in'
                },
            },
            {
                path: '/wms/add-wms-in',
                name: 'addWmsIn',
                component: addWmsIn,
                meta: {
                    menuOpen: '/wms',
                    menuSel: '/wms/in'
                },
            },
            {
                path: '/wms/in-details/:id',
                name: 'in-details',
                component: wmsInDetails,
                meta: {
                    menuOpen: '/wms',
                    menuSel: '/wms/in'
                },
            },
            {
                path: '/wms/out',
                name: 'wmsOut',
                component: wmsOut,
                meta: {
                    menuOpen: '/wms',
                    menuSel: '/wms/out'
                },
            },
            {
                path: '/wms/add-wms-out',
                name: 'addWmsOut',
                component: addWmsOut,
                meta: {
                    menuOpen: '/wms',
                    menuSel: '/wms/out'
                },
            },
            {
                path: '/wms/stock',
                name: 'wmsStock',
                component: wmsStock,
                meta: {
                    menuOpen: '/wms',
                    menuSel: '/wms/stock'
                },
            },
        ]
    }
];
export default wmsRouter;
